#include<stdio.h>
int main(void)
{
    int F;
    double C;

    scanf("%d",&F);

    C=5./9*(F-32);

    printf("%.1lf",C);

    return 0;


    
}